import { createAPI } from '@/utils/request'
// 获取标签列表
export const getTagslist = data => createAPI('/tags/', 'get', data)
// 获取所属学科简单列表
export const getSubject = data => createAPI('/subjects/simple', 'get', data)
// 添加
export const add = data => createAPI('/tags', 'post', data)
// 修改状态
export const changeState = data => createAPI(`/tags/${data.id}/$(data.state)`, 'post', data)
// 获取标签详情
export const getTags = data => createAPI(`/tags/${data.id}`, 'get', data)
// 标签修改
export const changeContent = data => createAPI(`/tags/${data.id}`, 'put', data)
// 删除
export const remove = id => createAPI('/tags/' + id, 'delete')
